from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'tasks', views.CrawlerTaskViewSet, basename='crawler-task')
router.register(r'data', views.CrawledDataViewSet, basename='crawled-data')

app_name = 'data_crawler'

urlpatterns = [
    path('', include(router.urls)),
] 